-- GENERATED SPELL FOR [Peacekeeper Security Suit] --


function spell0_6230(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6230', 2296, 1)
end

function spell1_6230(pUnit, Event) --@Pacify,n/a--
pUnit:FullCastSpellOnTarget(10730,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_6230', 10306, 1)
end

function Sorts_6230(pUnit, Event)
local choix_sorts_6230 = math.random(0, 1)
if choix_sorts_6230 == 0 then
pUnit:RegisterEvent('spell0_6230', 1, 1)
end
if choix_sorts_6230 == 1 then
pUnit:RegisterEvent('spell1_6230', 1, 1)
end
end

function mob6230_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6230', math.random(1500, 3000), 1)
end

function mob6230_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6230_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6230_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6230, 1, 'mob6230_Action')
RegisterUnitEvent(6230, 2, 'mob6230_Leave')
RegisterUnitEvent(6230, 3, 'mob6230_Kill')
RegisterUnitEvent(6230, 4, 'mob6230_Die')
